package org.hzandyy.framework.liteflow.context;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;
import com.yomahub.liteflow.slot.DefaultContext;
import lombok.extern.slf4j.Slf4j;
import org.hzandyy.framework.liteflow.support.Obj;

/**
 * @author hz
 * @since 2023/12/8 10:55
 */
@LiteflowComponent("node_context_3")
@Slf4j
public class Context3Cmp extends NodeComponent {

    @Override
    public void process() throws Exception {
        log.info("node context 3");

        Obj obj = this.getContextBean(CustomContext.class).getDate("obj");
        Object o = this.getContextBean(DefaultContext.class).getData("object");

        log.info("custom content get ('{}'), default content get ('{}')", obj, o);
    }

}
